package com.cinc.mdm.modules.customer.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 客户
 * @Author: jeecg-boot
 * @Date:   2022-02-04
 * @Version: V1.0
 */
@Data
@TableName("mdm_customer")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="客户对象", description="客户")
public class MdmCustomer implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**客户编码*/
	@Excel(name = "客户编码", width = 15)
    @ApiModelProperty(value = "客户编码")
    private String custNo;
	/**ERP编码*/
	@Excel(name = "ERP编码", width = 15)
    @ApiModelProperty(value = "ERP编码")
    private String custErpNo;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String custFullName;
	/**客户简称*/
	@Excel(name = "客户简称", width = 15)
    @ApiModelProperty(value = "客户简称")
    private String custShortName;
	/**详细地址*/
	@Excel(name = "详细地址", width = 15)
    @ApiModelProperty(value = "详细地址")
    private String custAddress;
	/**成立时间*/
	@Excel(name = "成立时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "成立时间")
    private Date custSetTime;
	/**注册资金*/
	@Excel(name = "注册资金", width = 15)
    @ApiModelProperty(value = "注册资金")
    private BigDecimal custRegistCapital;
	/**网址*/
	@Excel(name = "网址", width = 15)
    @ApiModelProperty(value = "网址")
    private String custWebSite;
	/**客户属性*/
	@Excel(name = "客户属性", width = 15)
    @ApiModelProperty(value = "客户属性")
    private String custQualityCode;
	/**客户类型*/
	@Excel(name = "客户类型", width = 15)
    @ApiModelProperty(value = "客户类型")
    private String custTypeCode;
	/**客户级别*/
	@Excel(name = "客户级别", width = 15, dicCode = "mdm_cust_level")
	@Dict(dicCode = "mdm_cust_level")
    @ApiModelProperty(value = "客户级别")
    private String custLevel;
	/**销售区域*/
	@Excel(name = "销售区域", width = 15)
    @ApiModelProperty(value = "销售区域")
    private String custSaleArea;
	/**客户所在国家编码*/
	@Excel(name = "客户所在国家编码", width = 15)
    @ApiModelProperty(value = "客户所在国家编码")
    private String custCountryCode;
	/**国别*/
	@Excel(name = "国别", width = 15, dicCode = "mdm_cust_nation")
	@Dict(dicCode = "mdm_cust_nation")
    @ApiModelProperty(value = "国别")
    private String custNationCode;
	/**客户上级单位*/
    @Excel(name = "客户上级单位", width = 15, dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @Dict(dictTable = "mdm_customer", dicText = "cust_full_name", dicCode = "id")
    @ApiModelProperty(value = "客户上级单位")
    private String custParentUnit;
	/**客户层级*/
	@Excel(name = "客户层级", width = 15)
    @ApiModelProperty(value = "客户层级")
    private String custTier;
	/**客户来源*/
	@Excel(name = "客户来源", width = 15, dicCode = "mdm_cust_source")
	@Dict(dicCode = "mdm_cust_source")
    @ApiModelProperty(value = "客户来源")
    private String custSource;
	/**成交状态*/
	@Excel(name = "成交状态", width = 15, dicCode = "mdm_trade_status")
	@Dict(dicCode = "mdm_trade_status")
    @ApiModelProperty(value = "成交状态")
    private String tradeStatusCode;
	/**经营范围*/
	@Excel(name = "经营范围", width = 15)
    @ApiModelProperty(value = "经营范围")
    private String cateScope;
	/**行业梯队*/
	@Excel(name = "行业梯队", width = 15)
    @ApiModelProperty(value = "行业梯队")
    private String cateEchelon;
	/**客户行业*/
	@Excel(name = "客户行业", width = 15, dicCode = "mdm_cust_cate")
	@Dict(dicCode = "mdm_cust_cate")
    @ApiModelProperty(value = "客户行业")
    private String cateTypeCode;
	/**企业性质*/
	@Excel(name = "企业性质", width = 15, dicCode = "mdm_ent_type")
	@Dict(dicCode = "mdm_ent_type")
    @ApiModelProperty(value = "企业性质")
    private String entTypeCode;
	/**企业背景*/
	@Excel(name = "企业背景", width = 15)
    @ApiModelProperty(value = "企业背景")
    private String entBackground;
	/**开户银行*/
	@Excel(name = "开户银行", width = 15)
    @ApiModelProperty(value = "开户银行")
    private String invBankName;
	/**银行账号*/
	@Excel(name = "银行账号", width = 15)
    @ApiModelProperty(value = "银行账号")
    private String invBankNo;
	/**纳税人识别号*/
	@Excel(name = "纳税人识别号", width = 15)
    @ApiModelProperty(value = "纳税人识别号")
    private String invTaxNo;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String invAddr;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private String invTel;
    /**省市区*/
    @Excel(name = "省市区", width = 15)
    @ApiModelProperty(value = "省市区")
    private String administrativeArea;
	/**省*/
	@Excel(name = "省", width = 15)
    @ApiModelProperty(value = "省")
    private String province;
	/**市*/
	@Excel(name = "市", width = 15)
    @ApiModelProperty(value = "市")
    private String city;
	/**区县*/
	@Excel(name = "区县", width = 15)
    @ApiModelProperty(value = "区县")
    private String area;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**邮编*/
    @Excel(name = "邮编", width = 15)
    @ApiModelProperty(value = "邮编")
    private String postCode;
    /**email*/
    @Excel(name = "email", width = 15)
    @ApiModelProperty(value = "email")
    private String email;
	/**负责人*/
    @Excel(name = "负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "负责人")
    private String owner;
	/**负责所在部门*/
    @Excel(name = "负责所在部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    @ApiModelProperty(value = "负责所在部门")
    private String ownerDept;
	/**创建人*/
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
	/**删除标志*/
	@Excel(name = "删除标志", width = 15)
    @ApiModelProperty(value = "删除标志")
    private String deleteFlag;
    /**附件*/
    @ApiModelProperty(value = "附件")
    private String file;
}
